﻿using System.Web.Configuration;

namespace SuCasa.Infrastructure{
    public static class Constants{
        static string UseFakesKey = "UseFakes";

        public static bool UseFakes{
            get{
                var webConfig = WebConfigurationManager.OpenWebConfiguration("/");
                var value = webConfig.AppSettings.Settings[UseFakesKey];
                return value != null && value.Value == "true";
            }
        } 
    }
}